<%@ page import="com.xlro.service.BookService" %>
<%@ page import="com.xlro.service.UserService" %>
<%@ page import="com.xlro.util.MyDate" %><%--
  Created by IntelliJ IDEA.
  User: xlro
  Date: 2021/5/13
  Time: 19:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>收藏</title>
    <style>
        body{
            /*background-color: antiquewhite;*/
            font-size: 36px;

            background: -moz-linear-gradient(top, #ffecd2 0%, #fcb69f 100%);
            background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#000000), color-stop(100%,#fcb69f));
            background: -webkit-linear-gradient(top, #ffecd2 0%,#fcb69f 100%);
            background: -o-linear-gradient(top, #ffecd2 0%,#fcb69f 100%);
            background: -ms-linear-gradient(top, #ffecd2 0%,#fcb69f 100%);
            background: linear-gradient(to bottom, #ffecd2 0%,#fcb69f 100%);
        }

        .moveColor{
            margin-top: 3%;
        }
    </style>
</head>
<body>

<%
    String bookId = request.getParameter("bookId");
//    String status = request.getParameter("status");

    BookService bs = new BookService();
    String username = (String) session.getAttribute("username");
    String userId = new UserService().getUser(username).getId();

//    out.println(username);
//    out.println(userId);
//    out.println(bookId);

    String result = bs.collUncoll(userId, bookId, MyDate.getThis());

    out.print("<p class='moveColor'>"+result+"</p>");
%>

</body>
</html>
